﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{

    public class ContactRecord : BaseModel
    {
        public long ConsultantId { get; set; }

        public long ContactStuId { get; set; }

        [Required(AllowEmptyStrings = false)]
        [StringLength(500)]
        public string Comment { get; set; }

        [ForeignKey("ConsultantId")]
        public Staff Consultant { get; set; }

        [ForeignKey("ContactStuId")]
        public StuClient ContactStu { get; set; }
    }
}